#ifndef COMPLEXCALCULATEWINDOW_H
#define COMPLEXCALCULATEWINDOW_H

#include <QMainWindow>
#include <ApplicationManager.h>
#include <QPushButton>
#include <QLineEdit>
#include <QTextBrowser>
#include <QButtonGroup>
#include <QRadioButton>
#include <service.h>
namespace Ui {
class ComplexCalculateWindow;
}

class ComplexCalculateWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit ComplexCalculateWindow(QWidget *parent = nullptr);
    ~ComplexCalculateWindow();

private:
    Ui::ComplexCalculateWindow *ui;
    //窗口切换按钮
    QPushButton* btn_calculator;    //算术表达式计算
    QPushButton* btn_matrix;    //矩阵运算
    QPushButton* btn_set;       //集合yu运算

    //输入框
    QLineEdit* lineEdit_a;
    QLineEdit* lineEdit_b;
    QLineEdit* lineEdit_c;
    QLineEdit* lineEdit_d;

    //按钮组
    QRadioButton* rbtn_add;
    QRadioButton* rbtn_sub;
    QRadioButton* rbtn_mul;
    QRadioButton* rbtn_div;
    //计算按钮
    QPushButton* btn_get;
    QTextBrowser* textBrowser_result;

    //处理计算业务
    Service service;
    //计算结果
    Complex complex;
};

#endif // COMPLEXCALCULATEWINDOW_H
